package com.robotic.route.service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;

import com.baomidou.mybatisplus.extension.service.IService;
import com.robotic.route.domain.RoutePointDetail;

/**
 * 路线点位维护Service接口
 *
 * @author tian
 * @date 2025-08-21
 */
public interface IRoutePointDetailService extends IService<RoutePointDetail>
{
    /**
     * 查询路线点位维护
     *
     * @param id 路线点位维护主键
     * @return 路线点位维护
     */
    public RoutePointDetail selectRoutePointDetailById(Long id);

    /**
     * 查询路线点位维护列表
     *
     * @param routePointDetail 路线点位维护
     * @return 路线点位维护集合
     */
    public List<RoutePointDetail> selectRoutePointDetailList(RoutePointDetail routePointDetail);

    /**
     * 新增路线点位维护
     *
     * @param routePointDetail 路线点位维护
     * @return 结果
     */
    public int insertRoutePointDetail(RoutePointDetail routePointDetail);

    /**
     * 修改路线点位维护
     *
     * @param routePointDetail 路线点位维护
     * @return 结果
     */
    public boolean updateRoutePointDetail(RoutePointDetail routePointDetail);

    /**
     * 批量删除路线点位维护
     *
     * @param ids 需要删除的路线点位维护主键集合
     * @return 结果
     */
    public int deleteRoutePointDetailByIds(Long[] ids);

    /**
     * 删除路线点位维护信息
     *
     * @param id 路线点位维护主键
     * @return 结果
     */
    public int deleteRoutePointDetailById(Long id);

    int synchroRoute();

    Future<Integer> issueNavigation(String fileAbsPath);

    int returnVoyage();

    int fixedPointNavigation(RoutePointDetail routePointDetail);

    /**
     * 根据路线编码和点位编码查询路线点位详情
     *
     * @param routeCode 路线编码
     * @param pointCode 点位编码
     * @return 路线点位详情
     */
    RoutePointDetail selectRoutePointDetailByRouteCodeAndPointCode(String routeCode, String pointCode);

    List<RoutePointDetail> getRoute();

    List<RoutePointDetail> getList(RoutePointDetail routePointDetail);

    List<Map<String, Object>> aboutToExecuteList();

    int taskNavigation(RoutePointDetail routePointDetail);
}
